package test.test6_18;

import java.util.Scanner;

public class Demo11 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入行数：");
        int row = sc.nextInt();
        System.out.println("请输入列数：");
        int column = sc.nextInt();
        print(row,column);
    }

    //方法输出*及其调用
    public static void print(int row ,int column) {
        for(int i = 1 ; i <= row ; i++) {
            for(int j = 1; j <= column; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

}
